<?xml version="1.0" encoding="windows-1255" ?>
<%@ page language="java" contentType="text/html; charset=windows-1255"
    pageEncoding="windows-1255"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@page import="dataBase.magaers.CodeDBMngr"%>
<%@page import="dataBase.VersionUidLangCid"%>
<%@page import="java.util.List"%>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255" />
<title>Show search document</title>
</head>
<body>
<% 	String cid = request.getParameter("cid");%>
<table>
<tr><th>Version</th><th>User</th><th>Language</th><th>Show code</th></tr>
<% CodeDBMngr cdbm = CodeDBMngr.getInstance();
	List<VersionUidLangCid> details = cdbm.getDetails(cid);
	for (VersionUidLangCid detail : details){ %>
		<tr>
			<td><% out.print(detail.getVersion());%></td>
			<td><% out.print(detail.getUid());%></td>
			<td><% out.print(detail.getLanguage());%></td>
			<td><a href="javascript:showSearchItem('<% out.print(cid);%>', '<% out.print(detail.getVersion()); %>')" >show code</a></td>
		</tr>
	<% } %>
</table>
</body>
</html>